<template>
  <div>
    <h3>{{title}}</h3>
    <p>{{value}}</p>
    <button @click="btn">打我</button>
  </div>
</template>

<script>
export default {
  props:['title','value'],
  data() {
    return {
      
    };
  },

  mounted() {
    
  },

  methods: {
    btn(){
      this.$emit('input',this.value-2 );
    }
  },
};
</script>

<style lang="scss" scoped>

</style>